# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Firmicus <francois.archlinux.org>

pkgname=ttf-junicode
pkgver=1.003
pkgrel=2
pkgdesc='Junius-Unicode: Font for Medievalists'
url='https://github.com/psb1558/Junicode-font/'
license=('custom:OFL')
arch=(any)
source=("ttf-junicode-$pkgver.tar.gz::https://github.com/psb1558/Junicode-font/archive/refs/tags/v$pkgver.tar.gz")
# N.B.: checksum provided by packager, not upstream
sha256sums=('cc68f8be8836f49389e1f9957089cdfb4c23c6b5f5645c72ce6fdb2167d941c3')

package() {
	cd "Junicode-font-$pkgver"
	install -Dm644 legacy/*.ttf -t "$pkgdir/usr/share/fonts/junicode"
	install -Dm644 docs/Junicode.pdf "$pkgdir/usr/share/doc/ttf-junicode/Junicode.pdf"
	install -Dm644 OFL.txt "$pkgdir/usr/share/licenses/ttf-junicode/OFL.txt"
}
